/**
 * 上海中赢金融信息服务有限公司
 * Copyright (c) 2016-2026 hmc,Inc.All Rights Reserved.
 */
package com.sys.midware.rdb.sql;

/**
 * 数据库操作类型
 * 
 * @author mobing@b5m.com
 * @see com.b5m.bocean.dal.sql.gaoxin.ocean.utils.sql.SQLType
 * @version V0.0.1-SNAPSHOT, 2015-1-8 下午2:17:09
 * @description
 * 
 */
public enum SQLType {
	INSERT, // 创建
	SELECT, // 读取
	UPDATE, // 更新
	DELETE;// 删除
	public static final boolean isInsert(SQLType type){
		boolean flag=false;
		switch(type){
		case  INSERT :
			flag= true;
			break;
			default :
				break;
		}
		return flag;
	}
	public static final boolean isSelect(SQLType type){
		boolean flag=false;
		switch(type){
		case  SELECT :
			flag= true;
			break;
			default :
				break;
		}
		return flag;
	}
	public static final boolean isUpdate(SQLType type){
		boolean flag=false;
		switch(type){
		case  UPDATE :
			flag= true;
			break;
			default :
				break;
		}
		return flag;
	}
	public static final boolean isDelete(SQLType type){
		boolean flag=false;
		switch(type){
		case  DELETE :
			flag= true;
			break;
			default :
				break;
		}
		return flag;
	}
}
